//package cn.liuyi.weiyi;
//
//import android.content.Context;
//import android.content.Intent;
//import android.os.Bundle;
//import android.os.Handler;
//import android.view.Gravity;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.widget.AdapterView;
//import android.widget.AdapterView.OnItemClickListener;
//import cn.edu.pku.tools.RegistrationInfo;
//import cn.liuyi.weiyi.adapter.MyRegistrationAdapter;
//
//import com.actionbarsherlock.app.ActionBar;
//import com.actionbarsherlock.app.ActionBar.LayoutParams;
//import com.actionbarsherlock.app.SherlockActivity;
//
//import java.util.List;
//
//import org.json.JSONObject;
//
//import se.emilsjolander.stickylistheaders.StickyListHeadersListView;
//
//public class MyRegistrationActivity extends SherlockActivity
//  implements AdapterView.OnItemClickListener
//{
//  ActionBar actionBar;
//  Context context;
//  LayoutInflater inflater;
//  JSONObject jsonInfo;
//  Handler mHandler;
//  StickyListHeadersListView my_registration_lv;
//  String response;
//  View title_bar;
//
//  private void initComponent()
//  {
//    this.my_registration_lv = ((StickyListHeadersListView)findViewById(R.id.my_registration_list));
//    MyRegistrationAdapter localMyRegistrationAdapter = new MyRegistrationAdapter(this.context);
//    this.my_registration_lv.setAdapter(localMyRegistrationAdapter);
//    this.my_registration_lv.setOnItemClickListener(this);
//  }
//
//  private void initEventListener()
//  {
//  }
//
//  private void initTitleBar()
//  {
//	ActionBar.LayoutParams lp = new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,ActionBar.LayoutParams.WRAP_CONTENT,Gravity.CENTER);
//    this.title_bar = this.inflater.inflate(R.layout.my_registration_action_bar, null);
//    this.actionBar.setCustomView(this.title_bar, lp);
//    this.actionBar.setDisplayShowHomeEnabled(false);
//    this.actionBar.setDisplayShowTitleEnabled(false);
//    this.actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
//    this.actionBar.setDisplayShowCustomEnabled(true);
//  }
//
//  protected void onCreate(Bundle paramBundle)
//  {
//    super.onCreate(paramBundle);
//    setContentView(R.layout.activity_my_registration);
//    this.inflater = getLayoutInflater();
//    this.actionBar = getSupportActionBar();
//    this.context = this;
//    initTitleBar();
//    initComponent();
//    initEventListener();
//  }
//
//  public void onItemClick(AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong)
//  {
//    Long localLong = ((RegistrationInfo)MyRegistrationAdapter.contents.get(paramInt)).getId();
//    Intent localIntent = new Intent(this.context, RegistrationInfoActivity.class);
//    localIntent.putExtra("registration_id", localLong);
//    this.context.startActivity(localIntent);
//  }
//}